package simpleSpring.test.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import simpleSpring.test.entity.User;

/**
 * @author caihe
 * @date 2022/10/25 14:17
 */
@ComponentScan("simpleSpring.test")
@EnableTransactionManagement
@Configuration
public class CaiheConfiguration {
    
    @Bean(name = "user")
    public User getUser() {
        User target = new User();
        target.setName("lisi");
        return target;
    }
    
}
